package com.zhou.spring;

import com.zhou.spring.controller.UserController;
import com.zhou.spring.service.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author zhouyanxiang
 * @create 2020-07-2020/7/13-21:05
 */
public class TestBean {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ctx = new ClassPathXmlApplicationContext("applicationContext.xml");
        UserController userController = ctx.getBean("UserController2", UserController.class);
        System.out.println(userController.toString());
        System.out.println(userController.list());
    }
}
